package com.byt.common.view.finder.entity;

import java.util.ArrayList;
import java.util.List;

/**
 * 地市
 */
public class City extends Area implements LinkageSecond<County> {

    private int cityId;

    private String provinceAreaId;

    private List<County> counties = new ArrayList<>();

    public City() {
        super();
    }

    public City(String areaName) {
        super(areaName);
    }

    public City(String areaId, String areaName) {
        super(areaId, areaName);
    }

    public int getCityId() {
        return cityId;
    }

    public void setCityId(int cityId) {
        this.cityId = cityId;
    }

    public List<County> getCounties() {
        return counties;
    }

    public void setCounties(List<County> counties) {
        this.counties = counties;
    }

    @Override
    public List<County> getThirds() {
        return counties;
    }

    public String getProvinceAreaId() {
        return provinceAreaId;
    }

    public void setProvinceAreaId(String provinceAreaId) {
        this.provinceAreaId = provinceAreaId;
    }
}